home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Compilers / digital marsC compier / dm / include / Search.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-03-16  |  1.2 KB  |  59 lines

  1. /* Copyright (C) 1992-2001 by Digital Mars. $Revision: 1.1.1.1 $ */
  2. #if __SC__ || __RCC__
  3. #pragma once
  4. #endif
  5.  
  6. #ifndef __SEARCH_H
  7. #define __SEARCH_H 1
  8.  
  9. #if __cplusplus
  10. extern "C" {
  11. #endif
  12.  
  13. typedef unsigned size_t;
  14.  
  15. /* Define _CRTAPI1 (for compatibility with the NT SDK) */
  16. #ifndef _CRTAPI1
  17. #define _CRTAPI1 __cdecl
  18. #endif
  19.  
  20. /* Define _CRTAPI2 (for compatibility with the NT SDK) */
  21. #ifndef _CRTAPI2
  22. #define _CRTAPI2 __cdecl
  23. #endif
  24.  
  25. /* Define CRTIMP */
  26. #ifndef _CRTIMP
  27. #if defined(_WIN32) && defined(_DLL)
  28. #define _CRTIMP  __declspec(dllimport)
  29. #else
  30. #define _CRTIMP
  31. #endif
  32. #endif
  33.  
  34. #if __OS2__ && __INTSIZE == 4
  35. #define __CLIB    __stdcall
  36. #else
  37. #define __CLIB    __cdecl
  38. #endif
  39.  
  40. void *    __CLIB bsearch(const void *,const void *,size_t,size_t,
  41.     int (__CLIB *)(const void *,const void *));
  42. void    __CLIB qsort(void *,size_t,size_t,
  43.     int (__CLIB *)(const void *,const void *));
  44. void *    __CLIB _lfind(const void *,const void *,unsigned int *,unsigned int,
  45.     int (__cdecl *)(const void *,const void *));
  46. void *    __CLIB _lsearch(const void *,const void *,unsigned int *,unsigned int,
  47.     int (__cdecl *)(const void *,const void *));
  48.  
  49. /* synonymns */
  50. #define lsearch _lsearch
  51. #define lfind _lfind
  52.     
  53. #if __cplusplus
  54. }
  55. #endif
  56.  
  57. #endif
  58.  
  59.